<?php
if(!isset($q)) $q='';else $q="&q=$q";
$paginator->options(array('url'=>array('?'=>$q)));
?>
<?php $javascript->link(array('index_only.js'), false); ?>
<h2>Listado de Salidas</h2>
<?php
echo $getList->getList(array(
    'Salida',array(
        'form'=>array('action'=>'process','type'=>'post'),
        'table'=>array('class'=>'celda','border'=>'0'),
        'config'=>array(
            '[Salida][id]'=>array('type'=>'hidden','key'=>true ),
            '[id]'=>array('type'=>'checkbox','title'=>'','width'=>20,'align'=>'center'),
            '[Salida][numero_control]'=>array('type'=>'fields','title'=>'# Control','width'=>60),
			'[Salida][fecha_emision]'=>array('type'=>'fields','title'=>'# Control','width'=>60),
            '[Salida][codigo_documento_ref_id]'=>array('type'=>'fields','title'=>'T.doc','width'=>60),
            '[Salida][numero_documento_ref]'=>array('type'=>'fields','title'=>'# Doc.','width'=>60),
			'[Salida][observaciones]'=>array('type'=>'fields','title'=>'Observaciones'),
            '[Editar]'=>array('type'=>'button','href'=>'edit','title'=>'','class'=>'lnkbutton btnedit','order'=>false,'width'=>50),
        ),
        'data'	=>$Salidas,
        'adition'=>array('find'=>true,'paginator'=>true),
        'button'=>array(
        	'default'=>true,
        	'Pedido'=>array('div'=>false,'type'=>'link','url'=>array('action'=>'add/'.$session->read('Usuario.CentroDist.id')),'class'=>'lnkbutton btnsendpack'),
        )
    )
));
?>